Named entity recognition in query

ABSTRACT

Named Entity Recognition in Query (NERQ) involves detection of a named entity in a given query and classification of the named entity into one or more predefined classes. The predefined classes may be based on a predefined taxonomy. A probabilistic approach may be taken to detecting and classifying named entities in queries, the approach using either query log data or click through data and Weakly Supervised Latent Dirichlet Allocation (WS-LDA) to construct and train a topic model.

BACKGROUND

Query processing can be important for search-enabled applications, including web search applications. Some solutions to processing queries for information have focused on methods of query segmentation, syntactic parsing, query classification, and query log mining.

Query segmentation generally relates to separating a query into a number of smaller units. Often there may be limitations on the types of segmented units possible, resulting in limited functionality in the method. Syntactic parsing generally focuses on identifying the linguistic structure of a query. Query classification generally falls into two groups: classification according to search intent, such as informational, navigational or transactional; and classification according to the semantics of a query, such as “shopping” or “living.” With either type of query classification, the whole query is generally classified and there is usually no further analysis on the internal structure of the query.

Query log mining has generally involved acquiring the named entities in a specific class from a query log. A named entity in this context may be a name within the query log that indicates a particular entity such as a real or imaginary person, group, organization, company, item, or the like. Query log mining has often been done by utilizing templates of the specific class. This approach is generally deterministic and usually only works in cases where a named entity belongs to only a single class.

Additionally, a method of Named Entity Recognition (NER) has been performed on text documents (generally natural language texts), using a defined set of rules based on sentence formation. The rules may include whether some identifiable features may be present in the documents. Such features may include whether or not the term “Mr.” occurs before a word, or whether or not the first letter of a word is capitalized. These types of features may indicate the presence of a named entity in the document. However, directly applying these traditional approaches to Named Entity Recognition in Query (NERQ) may not be effective, because search queries are usually short in word length (e.g., 2 to 3 words long) and not well formed (e.g., not formed in complete sentences and not properly capitalized—perhaps having all words in lower case). Thus, the identifiable features may not be present in most search queries.

SUMMARY

This summary introduces simplified concepts of named entity recognition in a query, which are further described below in the Detailed Description.

This application describes recognition of named entities in search queries, and prediction of one or more classifications for each of the named entities recognized. In one aspect, a method includes receiving an input query from a user and detecting a named entity in the input query. The method continues with predicting at least one classification for the detected named entity based on a topic model and a predefined taxonomy, and then outputting the detected named entity and the classification(s) to the user.

In another aspect, a method includes defining a seed set of seed named entities and assigning at least one classification to each of the seed named entities based on a predefined taxonomy. A topic model is then trained, based on the seed named entities and their classifications. The method continues with receiving an input query from a user and detecting a named entity in the input query. At least one classification is predicted for the detected named entity, based on the topic model and the predefined taxonomy, and then the detected named entity and its classification(s) are outputted to the user. In one example of the aspect, a method includes generating training data configured to train the topic model. The example method comprises scanning a data source for search queries having the seed named entities and collecting the search queries that have the seed named entities. The contexts of the search queries that have the seed named entities are identified. The data source may then be scanned again for search queries having the identified contexts, and the search queries that have the contexts are collected. New named entities are then extracted from the search queries that have the contexts.

In yet another aspect, a system is described as having a memory and a processor coupled to the memory, where the processor executes an offline training component and an online prediction component. In one example embodiment, the offline training component is configured to define a seed set, including a seed named entity, from a data set comprising multiple search queries. At least one classification assignment for the seed named entity is received based on a predefined taxonomy. The offline training component is further configured to scan a data source for search queries having the seed named entity and collect the search queries that have the seed named entity. The contexts of the search queries that have the seed named entity are then identified. The data source is scanned again for search queries having the contexts, and the search queries that have the contexts are collected. New named entities are extracted from the search queries that have the contexts, and a topic model is trained based on the new named entities and their classifications using a Weakly Supervised Latent Dirichlet Allocation (WS-LDA) learning method.

In an example embodiment, the online prediction component is configured to receive an input query from a user and detect another named entity in the input query. The online prediction component is further configured to automatically predict at least one other classification for the detected other named entity based on the topic model and the predefined taxonomy, and then output the detected other named entity and its predicted classification(s) to the user.

This summary is provided to introduce a selection of concepts in a simplified form to be further described below in the Detailed Description. This summary is not intended to identify key features or essential features of the claimed subject matter.

BRIEF DESCRIPTION OF THE DRAWINGS

The detailed description is set forth with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The use of the same reference numbers in different figures indicates similar or identical items.

FIG. 1 illustrates an example environment suitable for named entity recognition in a query.

FIG. 2 illustrates details of an example offline training component according to an embodiment of the present disclosure.

FIG. 3 illustrates an example of an offline training algorithm according to an embodiment of the present disclosure.

FIG. 4 illustrates details of an example online prediction component according to an embodiment of the present disclosure.

FIG. 5 illustrates an example of an online prediction algorithm according to an embodiment of the present disclosure.

FIG. 6 illustrates an example high-level algorithm for named entity recognition in a query.

FIG. 7 illustrates an example method of recognizing a named entity in a query and predicting a classification for the named entity.

FIG. 8 illustrates an example method of obtaining training data configured to train a topic model for use in the method described in FIG. 7.

DETAILED DESCRIPTION Overview

This disclosure describes systems, techniques, and methods of recognizing named entities in a query and classifying the named entities with one or more classes (labels) as appropriate. Given a query, such as a search query, the systems and/or methods described herein may be employed to detect a named entity within the query and identify or predict a most likely (probable) class or classes of the named entity. A query as used in this disclosure will often be described in terms of an input query to a web-based search engine. However, this is for simplicity of explanation, and does not limit the term query to that use. As used in this disclosure, the term query applies to any type of query, including those used in various applications for various types of inquiry or searching functions, including, for example, queries used in database applications, cataloging applications, or encyclopedia-type applications.

A named entity within a query may be a name within the query that indicates a particular entity such as a real or imaginary person, group, organization, company, item, and the like. A named entity may be a proper name, or a common name. For example, named entities may include “Harry Potter,” “Star Trek,” “Halo,” or “Pink Floyd.” Classes of named entities may be labels, topics, or categories for the named entities based on the context of the named entity as used in the query. Classes of named entities can be, for example, “Book,” “Movie,” “Game”, or “Music.” A named entity may have more than one class or label that applies. Further, depending on the query, one or more classes may be more likely (probable) classes, and others may be less likely classes or unlikely classes.

For instance, given an example search query “harry potter walkthrough,” one may detect “harry potter” as a named entity within the query, and may assign “Game” to it as the most likely class, “Movie” and “Book” as less likely classes, and “Music” as an unlikely class. This is because the context “walkthrough” strongly indicates that “harry potter” as used here is more likely to mean the Harry Potter game. If the search query was only “harry potter,” then “Book” and “Movie” may be more plausible. Note that for the purposes of this disclosure, the term “context” may be further defined as the remainder of a query other than the named entity. Thus, a context may be blank, null, or empty if a query only contains a named entity, and no other terms.

Identifying named entities in queries can help to understand search intents better. For example, by identifying a named entity, it may possible to provide better search results and improve ranking in a relevance search. Additionally, more relevant query suggestions may be generated by treating named entities and contexts separately. For example, using the input query “harry potter walkthrough,” the query suggestion “harry potter cheats” may be a relevant suggestion since it has a context in the same class (here, walkthrough and cheats both relate to games). Additionally, “halo 3 walkthrough” may also be a relevant suggestion since it has a named entity in the same class (here, both named entities are games).

A new probabilistic approach to Named Entity Recognition in Query (NERQ) using query log data or click-through data is herein described. Without loss of generality, a query having one named entity may be represented as a triple (e,t,c), where e denotes a named entity, t is the context of the named entity, and c is the class of the named entity. Again, note that t can be empty (i.e., no context) in queries having only a named entity, an input query, “harry potter.”

A general goal of one example approach to NERQ may be finding the triple (e,t,c) for a given query q, which has the largest joint probability P_(r)(e,t,c). That is, what context and class of a named entity did the user most likely intend in the query. The identified joint probability may be factorized and then estimated using query log data and Latent Dirichlet Allocation (LDA). In a LDA model, contexts of a named entity may be represented as words of a document and classes of the named entity may be represented as topics of the model. To ensure a reliable alignment between model topics and predefined classes, a weakly supervised learning method, referred to as WS-LDA (Weakly Supervised Latent Dirichlet Allocation), may be employed which can leverage the weak supervision (from humans) as part of the process. A weakly supervised learning method is one in which humans participate, at least in part, in the decision-making processes used to train the model. For example, humans can receive named entities instead of full queries, and then decide whether a named entity is classified as a “Movie” or a “Game,” based on their own knowledge. They may make this decision without knowing the context of the named entity in a query.

Multiple and varied implementations and embodiments are described below. In the following section, an example environment that is suitable for practicing various implementations is described. After this discussion, representative implementations of systems, devices, and processes for named entity recognition in a query are described.

Exemplary Architecture

FIG. 1 illustrates an example environment 100 suitable for Named Entity Recognition in Query (NERQ). For discussion purposes, the environment 100 may be configured to receive an input query from a human user 102. In other implementations, a computer or other device may automatically perform some or all of the functions performed by the user 102.

Typically, the user 102 may interact with a device 104. Interaction with the device 104 may include, for example, inputting data via an input and/or receiving output data via an output of the device 104. The device 104 may be coupled to a network 106.

A typical device 104 may be implemented as a variety of conventional computing devices including, for example, a server, a desktop PC, a notebook or portable computer, a workstation, a mainframe computer, a mobile computing device, an Internet appliance, a network router, etc., or a combination thereof that is configurable to receive input queries and output query results, as well as to perform named entity recognition in query and classification of the named entity recognized.

The network 106 may be a wireless or a wired network, or a combination thereof. The network 106 may be a collection of individual networks interconnected with each other and functioning as a single large network (e.g., the Internet or an intranet). Examples of such individual networks include, but are not limited to, Local Area Networks (LANs), Wide Area Networks (WANs), and Metropolitan Area Networks (MANs). Further, the individual networks may be wireless or wired networks, or a combination thereof.

In one embodiment, the device 104 includes a processor 108 coupled to a memory 110. The memory 110 may include computer-readable storage media in the form of volatile memory, such as Random Access Memory (RAM) and/or non-volatile memory, such as read only memory (ROM) or flash RAM. The memory 110 typically includes data and/or program modules for implementing NERQ on input queries that are immediately accessible to and/or presently operated on by the processor 108. In one embodiment, the memory 110 may include other software that assists in the functioning of the device 104, such as an operating system. The memory 110 may also include application data specific to an operating system or an application running on the device 104. The memory 110 may also be coupled to, associated with, and/or accessible to other devices, such as network servers, routers, and/or other devices 104.

In an example embodiment, the processor 108 is also coupled to a recognition module 112. The recognition module 112 includes an offline training component 114 and an online prediction component 116. The use of these two components within the recognition module 112 with regard to NERQ will be explained in detail below.

The recognition module 112 may be configured to receive an input query 118 from the user 102, and output a detected named entity 120 and at least one classification 122 for the named entity 120 to the user 102.

In one embodiment, the device 104 may comprise the processor 108, the memory 110, the recognition module 112, the offline training component 114, and the online prediction component 116 as illustrated in FIG. 1. However, in other embodiments, one or more of the components described may be located remotely to the device 104, may be distributed at various points on the network 106, or the like.

Further, the device 104 may be running a service 124. The service 124 may be a local application such as a cataloging application, an encyclopedia application, or the like, that primarily resides and runs on the device 104. In an alternate embodiment, the local application may have an optional connection to the network 106 that may be engaged. The service 124 may alternatively be a remote or web-based application such as a web-based search engine, a network tool, or the like, that primarily resides and runs on the network 106. In an alternate embodiment, the service 124 may comprise both local and remote components. The user 102 may interact with the service 124 through the device 104.

Offline Training Component

FIG. 2 illustrates details of an example offline training component 114. In an example embodiment, a seed set 202 may be constructed from a number of seed named entities 204. The seed named entities 204 forming the seed set 202 may be extracted from search query data, which may be comprised of individual search queries 206A through 206N. Any number of search queries 206A through 206N may be used to extract seed named entities 204. The number of search queries 206A through 206N gives a reasonable representation of the seed named entities 204 contained therein. In one embodiment, millions or billions of search queries 206A through 206N are used to extract the seed named entities 204. The number of seed named entities 204 will typically be somewhat less than the number of search queries 206A through 206N that they are extracted from, since certain named entities may recur frequently in searches, especially the more popular named entities. The search queries 206A through 206N may be sampled from a query log (not shown), such as a query log from a commercial web search engine, for example from GameSpot.com®, IMDb.com, Lyrics.com, or the like. In other embodiments, the search queries 206A through 206N may be obtained from other sources.

Each of the seed named entities 204 in the seed set 202 receives one or more classifications (also described as classes or labels) 122 through a classification assignment 208. There may be multiple classes 122 assigned to each seed named entity 204, based on the likelihood of the class 122, and considering the context of the seed named entity 204 in the queries it is extracted from. In an example embodiment, the classification assignment 208 (or labeling) of the seed named entities 204 is made by one or more human trainers 210. This process of making classification assignments 208 by humans may be referred to as a “weak supervision” technique, and is discussed further below. In alternate embodiments, the classification assignment 208 (or labeling) of the seed named entities 204 may be made with the assistance of automation. The seed named entities 204 are assigned labels or classifications 122 based on a predefined taxonomy 212. This predefined taxonomy 212 may limit the number of possible labels 122 that can be assigned to a seed named entity 204, and may create separate divisions of classes 122. The predefined taxonomy 212 used here may be a system and/or method for classification of named entities, for example, where possible classes are determined in advance, and each named entity may be associated with at least one of the possible classes. The predefined taxonomy 212 refers to a classification/organization of named entities, where possible classes are determined in advance representing the generalization concept of named entities, and each named entity may be associated with at least one of the possible classes. In one embodiment, four classes are possible, including “Movie,” “Game,” “Book,” and “Music.” In alternate embodiments, more or less classes may be possible, while remaining within the scope of this disclosure.

The seed named entities 204 in the seed set 202 may be used to construct training data 214 to train a topic model 216. In one embodiment, a data source 218 may be scanned for queries containing the seed named entities 204. In one embodiment, the data source 218 may be query log data 220, such as the query logs described above, from commercial web search engines, or the like. In another embodiment, the data source may be click through data 222.

Click through data 222 comprises queries and the associated Uniform Resource Locator (URL) associated with results of the queries, where the URLs have been “clicked on” or otherwise selected by the users who input the queries. Click through data may provide an additional level of confidence in a result of a query. This is because a user who input a search query subsequently selected the result (a URL) after it was presented to the user following a search. It may be assumed that if several results are presented to a user following an input query, a URL clicked on by the user is more likely what the user was searching for when he or she input the query. This assumption may be considered to be leveraging the wisdom of the crowds, and may strengthen the training data 214 used to train the topic model 216.

All queries in the data source 218 that contain the seed named entities 204 may be identified and collected. The contexts of the seed named entities 204 may then be identified and collected from those queries. The context of a seed named entity 204 may be defined as the remainder of a query, once the seed named entity 204 has been subtracted from the query.

The data source 218 may be scanned again, this time scanning the search queries in the data source 218 for the contexts just identified. The search queries having the identified contexts may then be collected. New named entities 224 may then be extracted from those search queries containing the contexts. To ensure high quality extraction of new named entities 224, a heuristic threshold cut-off may be made in this process. For example, if the new named entity 224 appears with less than N unique contexts collected above, the new named entity would be cut off, or excluded from the collection. These new named entities 224 already have their contexts identified due to the method of their extraction. Thus, these new named entities 224 may be used to train the topic model 216. The topic model 216 may be used to resolve ambiguities of named entity classes, as discussed below. As one skilled in the art will recognize, a topic model includes a probabilistic generative model based upon the idea that documents are mixtures of topics, where a topic is a probabilistic distribution over words. The words in a document are independently sampled from document topics according to their word distributions.

A learning method referred to as Weakly Supervised Latent Dirichlet Allocation (WS-LDA) 226 may be employed to train the topic model 216 using the training data 214 acquired as described above. Specifically, WS-LDA 226 may be used to estimate the probability of having a classification c, given a particular named entity e (written: Pr(c|e)) for the newly extracted named entities 224, with the probability of having a context t, given a particular classification c (Pr(t|c)) being fixed. For example, estimating the probability of having a classification “Game,” given the named entity “harry potter,” while the probability of having a context “walkthrough,” given the classification “Game” is fixed at 1. The probabilities of having a particular named entity e (Pr(e)) for newly extracted named entities 224 may also be estimated in this process. Specifically, the total frequency of queries containing e in the data source 218 may be used to approximate Pr(e). In general, the more frequently a named entity e occurs, the larger the probability Pr(e) will be. The details of WS-LDA 226 will be discussed in a later section.

All of the probabilities needed to train the topic model 216, that is, Pr(e), Pr(c|e), and Pr(t|c) may be estimated as described above and discussed in detail below. In one embodiment, the estimated probabilities may be stored for efficient online prediction. For example, the estimated probabilities may be stored in an index, a database, or the like, and may be stored local to the device 104 or may be stored on the network 106 or another remote location. An example detailed algorithm 300 for the offline training process as described above is shown in FIG. 3.

Online Prediction Component

FIG. 4 illustrates details of an example online prediction component 116. In general, the online prediction component 116 may be configured to receive an input query 118 from a user 102, and to detect a named entity 120 in the input query 118. Note that while the detected named entity 120 is distinguished from the seed named entity 204 or the new named entity 224 discussed in the section above, it is possible for each of these named entities to have the same value. For example, it is possible for the detected named entity 120, the seed named entity 204, and the new named entity 224 to all have the value “harry potter.”

The online prediction component 116 may be further configured to automatically predict one or more classifications 122 for the detected named entity 120 based on the trained topic model 216 and guided by the predefined taxonomy 212. As discussed above, the predefined taxonomy 212 may define any number of possible classifications (labels) 122. In one embodiment, the predefined taxonomy 212 may define the classifications 122 as “Movie,” “Game,” “Book,” and “Music.” In alternate embodiments, the predefined taxonomy 212 may define additional classifications 122, or may define fewer or other different classifications 122.

The online prediction component 116 may also be configured to output the named entity 120 that was detected in the input query 118 and the predicted classification(s) 122 for the detected named entity 120 to the user 102.

In an example embodiment, the online prediction component 116 is configured to perform the detection and prediction functions using a probabilistic approach. This probabilistic approach, which is detailed below, may be generalized as a process of finding the most likely triples in a function G(q) for a query q. The function G(q) may be generated by segmenting an input query 118 into a named entity 120 and its context in all possible ways, and labeling the segmented named entities 120 with all possible classes 122. For each triple (e, t, c) in G(q), the joint probability Pr(e, t, c) is then calculated. In an example embodiment, the triples with highest probabilities are the output results for NERQ. An example detailed algorithm 500 for the online prediction process using a probabilistic approach as described above is shown in FIG. 5. Note that the time complexity of the algorithm 500 is O(kn²), where k denotes a number of classes and n denotes a number of words in a query. Since both k and n may be very small, the prediction can generally be conducted very efficiently. In one example embodiment, those queries which do not have a named entity and a context stored in the index may be skipped for efficiency.

While various discreet embodiments are described, the individual features of the various embodiments may be combined or modified to form other embodiments not specifically described.

Basic Methodology

An example methodology for recognizing a named entity in a query is described below.

A Probabilistic Approach

A single-named-entity query q can be represented as a triple (e, t, c), where e denotes a named entity, t denotes the context of e in q, and c denotes the class of e. For example, for an input query “harry potter walkthrough” belonging to the context Game, the associated triple is (“harry potter”, “#walkthrough”, Game). Note that t may be further expressed as α#β, where α and β denote the left and right contexts respectively and # denotes a placeholder for a named entity. Either α or β can be empty (e.g. “# walk-through”, “lyrics to #”), or both can be empty (i.e. “#”).

In one embodiment, a goal of NERQ is to detect the named entity e in query q, and assign the most likely class label c to e. Therefore, this goal can be accomplished by finding the triple (e,t,c)* among all possible triples, satisfying:

$\begin{matrix} \begin{matrix} {\left( {e,t,c} \right)^{*} = {\arg\;{\max_{({e,t,c})}{\Pr\left( {q,e,t,c} \right)}}}} \\ {= {\arg\;{\max_{({e,t,c})}{{\Pr\left( {{q❘e},t,c} \right)}{\Pr\left( {e,t,c} \right)}}}}} \\ {= {\arg\;{\max_{{({e,t,c})} \in {G{(q)}}}{\Pr\left( {e,t,c} \right)}}}} \end{matrix} & (1) \end{matrix}$

In Eqn. (1), conditional probability Pr(q|e, t, c) represents how likely query q is generated from triple (e, t, c). Note that given a triple, it will uniquely determine a query. Therefore, for a fixed query q and triple (e, t, c), Pr(q|e, t, c) can only be one or zero. That is, there are only two possibilities: either (e, t, c) generates q or (e, t, c) does not generate q. For instance, the query “harry potter walkthrough” can be generated by (“harry potter”, “# walkthrough”, *), but not (“halo 3”, “# walkthrough”, *). We define G(q) as the set containing all possible triples that can generate query q (i.e., Pr(q|e, t, c) equals one). Thus, the triple having largest probability (e, t, c)* must be in G(q).

According to this embodiment, conducting NERQ involves calculating the joint probability Pr(e, t, c) for each triple in G(q), which can be further factorized as below:

$\begin{matrix} \begin{matrix} {{\Pr\left( {e,t,c} \right)} = {{\Pr(e)}{\Pr\left( c \middle| e \right)}{\Pr\left( {\left. t \middle| e \right.,c} \right)}}} \\ {= {{\Pr(e)}{\Pr\left( c \middle| e \right)}{\Pr\left( t \middle| c \right)}}} \end{matrix} & (2) \end{matrix}$

In Eqn. (2), Pr(t_(i)|c) may be set equal to Pr(t_(i)|c, e_(i)). That is to say, context depends on class but not on a specific named entity. This assumption largely reduces the parameter space and thus makes the learning tractable. It is also a reasonable assumption in practice because classes usually share common contexts. For example, “Music” takes “# lyrics” and “# mp3” as contexts. There may be contexts specific to named entities. However, due to data sparseness, may be difficult to accurately estimate the probabilities of them.

The problem then becomes how to estimate Pr(e), Pr(c|e) and Pr(t|c). The number of such probabilities may be extremely large, because there may be an extremely large number of named entities and contexts. These include variants of named entities like “harry potter 6” and “harry potter and the half-blood prince,” and variants of contexts like “# lyrics,” “lyrics to #,” and even typos “# lyrix.”

A Topic Model for NERQ

In one embodiment, it is assumed that there is a training data set available (training data 214 as described above), which contains triples from labeled queries T={(e_(i),t_(i),c_(i))|i=1, . . . , N}, where (e_(i),t_(i),c_(i)) denotes the “true” triple for query q_(i) and N is the data size. Therefore, the learning problem can be formalized as:

$\begin{matrix} {\max\;{\prod\limits_{i = 1}^{N}{\Pr\left( {e_{i},t_{i},c_{i}} \right)}}} & (3) \end{matrix}$

If each named entity only belongs to one class, the training data T may be easily built (for example, using a maximum likelihood estimation described by M. Pasca, CIKM '07, pages 683-690, 2007). However, in reality, named entities may be more ambiguous, e.g., “harry potter” can belong to classes “Book”, “Movie”, and “Game.” Therefore, in one embodiment, training data T={(e_(i), t_(i))} may be collected, and class label c_(i) may be viewed as a hidden variable. Also, the possible classes of each named entity in training may be known. The learning problem with respect to the new training data T={(e_(i),t_(i))} becomes:

$\begin{matrix} {{\max\;{\prod\limits_{i = 1}^{N}{\Pr\left( {e_{i},t_{i}} \right)}}} = {\max\;{\prod\limits_{i = 1}^{N}{{\Pr\left( e_{i} \right)}{\sum\limits_{c}{{\Pr\left( c \middle| e \right)}{\Pr\left( t_{i} \middle| c \right)}}}}}}} & (4) \end{matrix}$

In Eqn. (4), Pr(e_(i)) represents the popularity of named entity e_(i), Pr(c|e_(i)) represents the likelihood of class c given named entity e_(i), and Pr(t_(i)|c) represents the likelihood of context t_(i) given class c. The prior probability Pr(e_(i)) can be estimated in different ways, independent of Pr(c|e_(i)) and Pr(t_(i)|c). Suppose it is estimated as ^Pr(e_(i)), then Eqn. (4) becomes:

$\begin{matrix} {\max\;{\prod\limits_{i = 1}^{N}{{\hat{}{\Pr\left( e_{i} \right)}}{\prod\limits_{i = 1}^{N}{\sum\limits_{c}{{\Pr\left( c \middle| e_{i} \right)}{\Pr\left( t_{i} \middle| c \right)}}}}}}} & (5) \end{matrix}$

Here, the learning problem becomes that of learning the probabilities in Eqn. (5), which form a topic model.

WS-LDA

Since the topics in a model may be predefined, and the possible topics of a document may be given, a new method for learning a topic model, referred to as Weakly Supervised Latent Dirichlet Allocation (WS-LDA) (226 as described above) may be employed. For purposes of discussion here, conventional notations for document processing are used to describe the topic model. Specifically, contexts become “words,” contexts of a named entity form a “document”, and classes of named entity correspond to “topics.” By way of example, suppose that generated training data contains named entity “harry potter” with classes “Movie,” “Book,” and “Game,” and three queries containing “harry potter” are found in a query log, “harry potter movie,” “harry potter walkthrough,” and “harry potter review.” Then a document (context) with respect to “harry potter” may contain three words, i.e., “# movie,” “# walkthrough,” and “# review,” and the topics of the document may be “Movie,” “Book,” and “Game.”

Accordingly, the topic model in Eqn. (5) can be rewritten in the following form for better understanding:

$\begin{matrix} {\prod\limits_{e}{\prod\limits_{\{{{i|e} = e_{i}}\}}{\sum\limits_{c}{{\Pr\left( c \middle| e_{i} \right)}{\Pr\left( t_{i} \middle| c \right)}}}}} & (6) \end{matrix}$

In this example, e denotes a unique named entity in the training data. Note that ^Pr(e_(i)) is dropped for clarity, and it can be easily integrated into the model. The first product in Eqn. (6) is computed for all the unique named entities in the training data (document level product), and the second product is calculated for all the contexts of the same named entity (word level product).

Model

The definition of the model may first be given in WS-LDA, which may be the same as with conventional LDA. Suppose, for example, there is a corpus of M documents D={wi, . . . , w_(M)} sharing K topics, and each document is a sequence of N words denoted by w={w₁, . . . , wn}. The documents w in the corpus D may be generated by the following generative process, where θ represents the topic distribution of a document. (Since Dirichlet(α) is the distribution of distributions, Dirichlet(α) can be sampled from to get a distribution):

1. Draw topic distribution θ˜Dirichlet(α)

2. For each word

-   -   a. Draw topic assignment z_(n)˜Multinomial(θ)     -   b. Draw word w_(n)˜Multinomial(β_(Zn)), a multinomial         distribution conditioned on topic z_(n).

Given parameters Θ={α, β}, the probability distribution of a document may be obtained by:

$\begin{matrix} {{p\left( w \middle| \Theta \right)} = {\int{{p\left( \theta \middle| \alpha \right)}\left( {\prod\limits_{n = 1}^{N}{\sum\limits_{Zn}{{p\left( z_{n} \middle| \theta \right)}{p\left( {\left. w_{n} \middle| z_{n} \right.,\beta} \right)}}}} \right){\mathbb{d}\theta}}}} & (7) \end{matrix}$

Finally, taking the product of probabilities of documents, the probability of corpus may be obtained by:

$\begin{matrix} {{p\left( D \middle| \Theta \right)} = {\prod\limits_{d = 1}^{M}{\int{{p\left( \theta_{d} \middle| \alpha \right)}\left( {\prod\limits_{n = 1}^{Nd}{\sum\limits_{z_{dn}}{{p\left( z_{dn} \middle| \theta_{d} \right)}{p\left( {\left. w_{dn} \middle| z_{dn} \right.,\beta} \right)}}}} \right){\mathbb{d}\theta_{d}}}}}} & \left( {7A} \right) \end{matrix}$ Weak Supervision

In NERQ, employing an unsupervised learning method to learn the topic model generally will not work, because the topics (classes) may be explicitly predefined in NERQ. In contrast, the topics in a conventional topic model may be implicit and may be automatically learned. There may be no guarantee that the hidden topics learned by an unsupervised learning method will be aligned with the predefined topics (classes). Therefore, in one embodiment, supervision may be introduced in the training process of the topic model 216.

In an example embodiment, the supervision is the manual class labeling of each seed named entity 204. The labels assigned may not be exclusive because ambiguity exists in named entities. For example, “harry potter” may have three classes, i.e., “Movie,” “Book,” and “Game.” In the embodiment, human judges are tasked to make a judgment only on whether a named entity can belong to a class or not. (It would be extremely hard for human judges to decide a probability of a named entity's belonging to a class.) This type of labeling may be referred to as weak supervision for training. In the terminology of topic modeling, that means a document may have high probabilities on labeled topics, but very low probabilities on unlabeled topics.

Objective Function

In one example, given a document w, the assigned class labels may be represented as y={y₁, . . . , y_(K)}, where y_(i) takes 1 or 0 when the i-th topic is or is not assigned to the document, and K denotes the number of topics. The weak supervision information may be used as soft constraints in the objective function. WS-LDA tries to maximize the likelihood of data with respect to the model, and at the same time satisfy the soft constraints. The constraints are defined as follows:

$\begin{matrix} {{{C\left( {y,\Theta} \right)} = {\sum\limits_{i = 1}^{K}{{\hat{y}}_{i}z_{i}}}}{{{given}\text{:}\mspace{14mu}{\hat{z}}_{i}} = {{1/n}{\sum\limits_{n = 1}^{N}z_{n}^{i}}}}} & (8) \end{matrix}$ where is z^(i) _(n) is 1 or 0 when the i-th topic is or is not assigned to the n-th word. That is to say, ^z_(i) represents an empirical probability of the i-th topic in document w. Thus, in an embodiment, maximizing the soft constraints may meet the following two goals at the same time: (1) the i-th latent topic is aligned to the i-th predefined class; and (2) the document w is mainly distributed over labeled classes.

Specifically, the objective function with respect to a document may be defined as follows: O(w|y,Θ)=log p(w|Θ)+λC(y,Θ)  (9) where likelihood function p(w|Θ) and soft constraint function C(y, Θ) are represented as in Eqn. (7) and (8) respectively, and λ is a coefficient representing the weight or importance attributed to the weak supervision in the training. If λ equals 0, WS-LDA learning degenerates to LDA learning.

Finally, substituting Eqn. (7) and (8) into Eqn. (9) and taking the sum over all documents, the following total objective function may be obtained:

$\begin{matrix} \begin{matrix} {{O\left( {\left. D \middle| Y \right.,\Theta} \right)} = {\sum\limits_{d = 1}^{M}{O\left( {\left. w_{d} \middle| y_{d} \right.,\Theta} \right)}}} \\ {= {\sum\limits_{d = 1}^{M}{\log\;{\int{p\left( \theta_{d} \middle| \alpha \right)}}}}} \\ {{\left( {\prod\limits_{n = 1}^{Nd}{\sum\limits_{zdn}{{p\left( z_{dn} \middle| \theta_{d} \right)}{p\left( w_{dn} \middle| {z_{{dn},}\beta} \right)}}}} \right){\mathbb{d}\theta_{d}}} +} \\ {\sum{\lambda{\sum{{\hat{y}}_{di}z_{di}}}}} \end{matrix} & (10) \end{matrix}$ Algorithm

Thus, WS-LDA can be equivalent to maximizing the objective function in Eqn. (10). However, there may be no analytic solution for the problem as in conventional LDA learning. Therefore, a variational method may be employed wherein the approximate distribution is characterized by the following variational distribution:

${q\left( {\theta,\left. z \middle| \Lambda \right.} \right)} = {{q\left( \theta \middle| \gamma \right)}{\prod\limits_{n = 1}^{N}{q\left( z_{n} \middle| \varphi_{n} \right)}}}$ where Λ={γ, φ_(1:N)} are variational parameters. Specifically, γ is a Dirichlet parameter of the model and φ_(1:N) are internal multi-nominal parameters of the model.

Therefore, the objective function for a single document can be derived as follows.

$\begin{matrix} {\mspace{20mu}{{O\left( {\left. w \middle| y \right.,\Theta} \right)} = {{L\left( {\Lambda;\Theta} \right)} + {D\left( {{{q\left( {\theta,\left. z \middle| \Lambda \right.} \right)}\left. {p\left( {\theta,\left. z \middle| w \right.,\Theta} \right)} \right)\mspace{20mu}{where}},{{L\left( {\Lambda;\Theta} \right)} = {{\int{\sum\limits_{z}{{q\left( {\theta,\left. z \middle| \Lambda \right.} \right)}\log\;\frac{p\left( {\theta,z,\left. w \middle| \Theta \right.} \right)}{q\left( {\theta,\left. z \middle| \Lambda \right.} \right)}{\mathbb{d}\theta}}}} + {\int{\sum\limits_{z}{{q\left( {\theta,\left. z \middle| \Lambda \right.} \right)}\lambda\;{C\left( {y,\Theta} \right)}{\mathbb{d}\theta}}}}}}} \right.}}}} & (11) \end{matrix}$

Minimizing a divergence of K*L between the variational posterior probability and the true posterior probability, denoted as D(q(θ, z|Λ)∥p(θ, z\w, Θ)), gives a good approximate distribution of p(θ, z\w, Θ), where L is the lower bound of the objective function. From Eqn. (11) it may be shown that this is equivalent to maximizing the lower bound L(Λ; Θ) on the objective function O(w|y, Θ) with respect to Λ which has the form:

O(w|y, Θ) ≥ L(Λ, Θ) = E_(q)[log  p(θ|α)] + E_(q)[log  p(z|θ)] + E_(q)[log  p(w|z, β)] − E_(q)[log  q(θ)] − E_(q)[log  q(z)] + E_(q)[λ C(y, Θ)] Let β_(iν) be p(w^(ν) _(n)=1|z^(i)=1) for word ν. Each of the above terms can be expressed in the following equations (12)-(17):

$\begin{matrix} {{L\left( {\Lambda;\Theta} \right)} = {{\log\;{\Gamma\left( {\sum\limits_{j = 1}^{K}\alpha_{j}} \right)}} - {\sum\limits_{j = 1}^{K}{\log\;{\Gamma\left( \alpha_{i} \right)}}} + {\sum\limits_{i = 1}^{K}{\left( {\alpha_{i} - 1} \right)\left( {{\Psi\left( \gamma_{i} \right)} - {\Psi\left( \sum\limits_{j = 1}^{K} \right)}} \right)}}}} & (12) \\ {\mspace{79mu}{+ {\overset{N}{\sum\limits_{n = 1}}{\sum\limits_{i = 1}^{K}{\phi_{ni}\left( {{\Psi\left( \gamma_{i} \right)} - {\Psi\left( {\sum\limits_{j = 1}^{K}\gamma_{j}} \right)}} \right)}}}}} & (13) \\ {\mspace{79mu}{{+ {\sum\limits_{n = 1}^{N}{\sum\limits_{i = 1}^{K}{\sum\limits_{v = 1}^{V}{\phi_{ni}w_{n}^{v}\log\;\beta_{iv}}}}}} - {\log\;{\Gamma\left( {\sum\limits_{j = 1}^{K}\gamma_{j}} \right)}} + {\sum\limits_{i = 1}^{K}{\log\;{\Gamma\left( \gamma_{i} \right)}}}}} & (14) \\ {\mspace{79mu}{- {\sum\limits_{i = 1}^{K}{\left( {\gamma_{i} - 1} \right)\left( {{\Psi\left( \gamma_{i} \right)} - {\Psi\left( {\sum\limits_{j = 1}^{K}\gamma_{j}} \right)}} \right)}}}} & (15) \\ {\mspace{79mu}{- {\sum\limits_{n = 1}^{N}{\sum\limits_{i = 1}^{K}{\phi_{ni}\log\;\phi_{ni}}}}}} & (16) \\ {\mspace{79mu}{{+ \frac{\lambda}{N}}{\sum\limits_{n = 1}^{N}{\sum\limits_{i = 1}^{K}{y_{i}\phi_{ni}}}}}} & (17) \end{matrix}$ Notice that

${E_{q}\left\lbrack {\hat{}z_{i}} \right\rbrack} = {{E_{q}\left\lbrack {\frac{1}{N}{\sum\limits_{n = 1}^{N}z_{n}^{i}}} \right\rbrack} = {{\frac{1}{N}{\sum\limits_{n = 1}^{N}{E_{q}\left\lbrack z_{n}^{i} \right\rbrack}}} = {\frac{1}{N}{\sum\limits_{n = 1}^{N}\phi_{ni}}}}}$ is used for the derivation of the term (17).

A variational expectation-maximization (EM) algorithm may then be employed to estimate the model parameters Θ:

E-step: $\gamma_{i} = {\alpha_{i} + {\sum\limits_{n = 1}^{N}\phi_{ni}}}$ $\phi_{ni} \propto {\beta_{iv}{\exp\left( {{\Psi\left( \gamma_{i} \right)} - {\Psi\left( {\sum\limits_{j = 1}^{K}\gamma_{j}} \right)} + {\frac{\lambda}{N}y_{i}}} \right)}}$ M-step: $\beta_{ij} \propto {\sum\limits_{d = 1}^{M}{\sum\limits_{n = 1}^{N_{d}}{\phi_{dni}w_{dn}^{j}}}}$

Dirichlet parameter α can be updated in the M-step by using an efficient Newton-Raphson method in which the inverted Hessian can be computed in linear time.

Prediction

In an example embodiment, WS-LDA may also be used in a prediction process. Specifically, WS-LDA may also be used in calculating the probability Pr(c|e) for unseen named entities in NERQ. This corresponds to estimating the probability of a topic given a new document w with the already estimated model Θ. The estimation may then be performed by approximating the posterior topic distribution θ of the new document w using a variational inference procedure.

Exemplary Methods

Methods for recognizing named entities in queries are described with reference to FIGS. 6-8. These methods can be described in the general context of computer executable instructions. Generally, computer executable instructions can include routines, programs, objects, components, data structures, procedures, modules, functions, and the like that perform particular functions or implement particular abstract data types. The methods can also be practiced in a distributed computing environment where functions are performed by remote processing devices that are linked through a communication network. In a distributed computing environment, computer executable instructions may be located both in local and remote computer storage media, including memory storage devices.

The methods are illustrated as a collection of blocks in a logical flow graph representing a sequence of operations that can be implemented in hardware, software, firmware, or a combination thereof. The order in which the methods are described is not intended to be construed as a limitation, and any number of the described method blocks can be combined in any order to implement the methods, or alternate methods. Additionally, individual blocks may be deleted from the methods without departing from the spirit and scope of the subject matter described herein. In the context of software, the blocks represent computer instructions that, when executed by one or more processors, perform the recited operations.

The methods described in FIGS. 6-8 may, but need not, be implemented using the environment 100 of FIG. 1. By way of example, the methods are described in the context of environment 100, but are not limited to that environment.

FIG. 6 illustrates an overview of an example method 600 of recognizing a named entity in a query.

At block 602, an input query 118 is received from a user 102. The query 118 may be received directly from the user 102 through an input device, such as a keyboard and/or a mouse at a terminal. For example, the query 118 may be received at the device 104. In an alternate embodiment, the input query 118 may be received indirectly, such as via web input, data transmission over a communications network, data transfer from a storage media device, or the like. For example, the input query 118 may be received from the service 124 via a network connection. The service 124 may be a local service residing on the device 104 such as a local application, may be a remote service residing on the network 106 such as a network-based application or web-based application, or may be a service with portions residing in multiple locations, both locally and remote.

At block 604, a named entity 120 is detected in the input query 118. For example, the named entity 120 may be detected by the recognition module 112.

At block 606, one or more classifications 122 are predicted for the named entity 120. In one embodiment, the classifications 122 that are predicted for the named entity 120 are based on the context of the named entity 120 in the query 118. For example, if a query 118 “harry potter walkthrough” is received at block 602, then the named entity 120 “harry potter” may be detected in the query 118 at block 604, and a likely classification 122 “Game” may be predicted at block 606 based on the context “walkthrough.”

At block 608, the named entity 120 and the predicted classifications 122 are output to the user 102. In keeping with the above example, the named entity 120 “harry potter,” and the classification 122 “Game” may be output to the user 102. In a case where more than one classification 122 is likely for a named entity 120, then all likely classifications 122 may be output to the user 102. For example, if the input query 118 “pink floyd the wall” is received at block 602, then the named entity 120 “pink floyd” and the classifications 122 “Music” and “Movie” may be output to the user 102 at block 608. Further, the named entity 120 and the classification(s) 122 may be directly output to the user 102, they may be indirectly output to the user 102, or some combination of direct and indirect output. For example, a direct output may include a basic listing of the named entity 120 and the classification(s) 122 on the device 104, and the like. Alternately, an example of an indirect output or a combination may include using the named entity 120 and the classification(s) 122 as part of a ranking mechanism for displaying search results on a web page, such as by relevancy, and the like.

FIG. 7 illustrates a more detailed view of an example method 700 of recognizing a named entity 120 in a query 118 and predicting a classification 122 for the named entity 120. The method 700 may be partially or fully automated. For example, the method 700 described herein may be performed by a recognition module 112 operating on a processor 108 as described above.

At block 702, a seed set 202 of seed named entities 204 is defined. The seed set 202 may be defined from a data set comprising a plurality of search queries. For example, the seed set 202 may originate from queries 206 contained in query logs from commercial web search engines, or the like. In one embodiment, a sample of the queries 206 is selected, and the named entities 204 in the queries 206 are extracted. The seed named entities 204 may be extracted manually from the queries 206, or they may be extracted through an automated process. After extraction, the seed named entities 204 may be collected into a seed set 202.

At block 704, one or more classifications 208 are assigned to the seed named entities 204. In an example embodiment, the classifications 208 are assigned manually, by a human trainer 210. In alternate embodiments, the classifications 208 may be assigned at least partially through automation. As mentioned above, classifications 208 may be assigned to the seed named entities 204 based on the context of the named entity 204 in the query 206. One classification 208 may be assigned to a named entity 204 if only one classification 208 is a likely classification 208 based on the context. Otherwise, multiple classifications 208 may be assigned to a seed named entity 204 if the multiple classifications 208 are all likely for the seed named entity 204 based on the context. The same named entity 204 may be classified differently on subsequent assignments due to differing contexts of the named entity 204 in subsequent queries 206.

Classifications 208 assigned to named entities 204 are based on a predefined taxonomy 212. In one embodiment, the classifications 208 may include “Book,” “Movie,” “Game,” and “Music.” In alternate embodiments, additional classifications 208 may be defined in the taxonomy 212. In one embodiment, fewer classifications 208 are defined for assignment to named entities 204.

At block 706, a topic model 216 is trained based on the seed named entities 204 and the classifications 208 assigned to the seed named entities 204. In an example embodiment, the topic model 216 is trained offline as described above, using a WS-LDA 226 learning method. More on this process will be described below with reference to FIG. 8.

At block 708, an input query 118 is received from a user 102 as described above with reference to FIG. 6. At block 710, another named entity 120 is detected in the input query 118 based on the topic model 216 trained in block 706. At block 712, one or more classifications 122 are predicted for the other named entity 120 using the topic model 216 trained in block 706. In one embodiment, the classifications 122 that are predicted for the other named entity 120 are based on the context of the other named entity 120 in the query 118. In an example embodiment, the prediction of the classifications 122 for the other named entity 120 is based on a probability function as described above.

At block 714, the other named entity 120 and the predicted classification(s) 122 for the other named entity 120 are output to the user 102. The output of the other named entity 120 and the predicted classification(s) 122 for the other named entity 120 may be output to the user 102 either directly or indirectly as described above.

FIG. 8 illustrates an example method 800 of obtaining training data 214 configured to train a topic model 216 for use in the method described in FIG. 7. In alternate embodiments, training data 214 for training the topic model 216 described with respect to FIG. 7 may be obtained by other processes. In one embodiment, the training data 214 may be obtained using a data source 218 containing search queries.

In one embodiment, the data source 218 may be query log data 220, such as a query log from a commercial web search engine, or the like. In another embodiment, the data source 218 may be click through data 222. Click through data 222 comprises queries and the associated Uniform Resource Locator (URL) associated with results of the queries, where the URLs have been “clicked on” or otherwise selected by the users 102 who input the queries. As discussed above, click through data 222 may provide an additional level of confidence in a result of a query. This is because the user 102 subsequently selected the result (a URL) after it was presented to the user following a search. If several results are presented to a user 102 following an input query, a URL clicked on by the user 102 is more likely what the user 102 was searching for when he input the query. This may be considered to be leveraging the wisdom of the crowds, and may strengthen the training data 214 used to train a topic model 216.

Furthermore, in the click-through data 222, the contexts of named entities in queries and the websites of associated URLs may provide rich clues for identifying the classes of named entities. One example application may be in resolving ambiguities. For example, if named entities are associated with the website “IMDb.com” in the click-through data, then they are likely to be movies, since the website “IMDb.com” is a movie database website (The Internet Movie Database).

At block 802, in one implementation, a data source 218 is scanned for search queries having the seed named entities 204. As discussed above, the data source 218 may be query log data 220, such as a query log from a commercial web search engine, click through data 222, or the like. The data source 218 is scanned, and all search queries in the data source 218 that contain the seed named entities 204 are collected. Additionally, as the search queries are collected, the frequency of occurrence of a particular seed named entity 204 may be calculated. The total frequency of queries containing the seed named entity 204 in the query log may be used to approximate the probability of occurrence of the seed named entity 204. In general, the more frequently the seed named entity 204 occurs, the larger probability Pr(e) will be.

At block 804, the contexts of the search queries collected at block 802 are identified. As discussed above, this process may comprise removing the seed named entity 204 from the search query, and taking the remainder as the context of the seed named entity 204. In other embodiments, this process may be more refined, with limitations placed on the words identified as context for the seed named entity 204 in the query.

At block 806, the data source 218 used in block 802 is scanned again for search queries having the contexts identified in block 804. The search queries having the identified contexts may then be collected. In an alternate embodiment, a different data source 218 than that used in block 802 and 804 may be used to perform the step of block 806.

At block 808, new named entities 224 are extracted from the search queries collected in block 806. These new named entities 224 are those having the contexts identified in block 804. Thus, these new named entities 224 extracted based on context in queries are used to train the topic model 216 as described in FIG. 7.

Any of the acts of any of the methods described herein may be implemented at least partially by a processor or other electronic device based on instructions stored on one or more computer-readable media. Computer-readable media can be any available media that can be accessed during computation of resource bounds. By way of example, and not limitation, computer-readable media may comprise volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Computer-readable media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information. Combinations of any of the above should also be included within the scope of computer-readable media.

CONCLUSION

Although this disclosure uses language specific to structural features and/or methodological acts, the disclosure is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as example forms of implementing various embodiments. 

What is claimed is:
 1. A computer-implemented method of recognizing named entities in a query with a recognition module operating on a processor, the method comprising: receiving an input query from a user; detecting a named entity in the input query; representing the input query as one or more triples (e, t, c), wherein e represents the detected named entity, t represents a context of the detected named entity, and c represents a classification for the detected named entity that is determined based at least in part on a trained probabilistic topic model and a predefined taxonomy; calculating a joint probability for individual ones of the one or more triples; identifying a largest joint probability associated with a respective one of the one or more triples; predicting an assigned classification for the detected named entity based at least in part on the identified largest joint probability; and outputting the detected named entity and the assigned classification to the user.
 2. The method of claim 1, wherein multiple classifications are predicted for the detected named entity based on the trained probabilistic topic model and the predefined taxonomy.
 3. The method of claim 1, wherein the trained probabilistic topic model is trained using a Weakly Supervised Latent Dirichlet Allocation (WS-LDA) learning method, the WS-LDA learning method comprising determining, by a human, that the detected named entity can belong to the classification.
 4. The method of claim 1, wherein the representing the input query as one or more triples (e, t, c) comprises determining that a plurality of triples (e, t, c) represent the input query by: determining multiple possible ways of segmenting the input query into at least one named entity and at least one context; labeling the at least one named entity with multiple possible classes for the multiple possible ways of segmenting the input query; and determining the plurality of triples (e, t, c) that represent the input query as a set of unique triples that are formed by the multiple possible ways of segmenting the query and the multiple possible classes.
 5. A method of recognizing named entities in a query with a recognition module operating on a processor, the method comprising: defining a seed set comprising a seed named entity; assigning a classification to the seed named entity based on a predefined taxonomy; training a probabilistic topic model based on the seed named entity and the classification; receiving an input query from a user; detecting, by the processor, another named entity in the input query; representing the input query as one or more triples (e, t, c), wherein e represents the detected other named entity, t represents a context of the detected other named entity, and c represents a particular classification for the detected other named entity that is determined based at least in part on the trained probabilistic topic model and the predefined taxonomy; calculating a joint probability for individual ones of the one or more triples; identifying a largest joint probability associated with a respective one of the one or more triples; predicting, by the recognition module, an assigned classification for the detected other named entity based at least in part on the identified largest joint probability; and outputting the detected other named entity and the assigned classification to the user.
 6. The method of claim 5, wherein the classification assigned to the seed named entity is assigned manually, and wherein the probabilistic topic model is trained using a Weakly Supervised Latent Dirichlet Allocation (WS-LDA) learning method, the WS-LDA learning method comprising determining, by a human, that the detected named entity can belong to the classification.
 7. The method of claim 5, wherein the seed set is selected based at least in part on a data set comprising a plurality of search queries.
 8. The method of claim 5, wherein a plurality of classifications is assigned to the seed named entity.
 9. The method of claim 5, further comprising generating training data, the generating comprising: scanning a data source for a first search query having the seed named entity; collecting the first search query having the seed named entity; identifying an associated context of the first search query having the seed named entity; scanning the data source for a second search query having the associated context; collecting the second search query having the associated context; and extracting a new named entity from the second search query having the associated context.
 10. The method of claim 9, wherein the data source is a click-through data set comprising queries received and selected Uniform Resource Locators (URLs) associated with the queries received.
 11. The method of claim 9, wherein the associated context comprises a remainder of the first search query other than the seed named entity.
 12. The method of claim 9, wherein the collecting the first search query further comprises calculating a frequency of occurrence for the seed named entity in the data source.
 13. The method of claim 9, further comprising: estimating a probability P_(r)(c|e) for the seed named entity and estimating a probability P_(r)(t|c) for the classification, wherein c represents the classification, e represents the seed named entity, and t represents the associated context of the first search query.
 14. The method of claim 9, further comprising: estimating probabilities P_(r)(c|e) and P_(r)(e) for the new named entity while a probability P_(r)(t|c) is a fixed constant, wherein c represents the classification, e represents the new named entity, and t represents the associated context of the second search query.
 15. The method of claim 14, wherein the estimating P_(r)(c|e) and P_(r)(e) for the new named entity is performed at least in part using Weakly Supervised Latent Dirichlet Allocation (WS-LDA) comprising a determination, by a human, that the new named entity can belong to the classification.
 16. The method of claim 9, further comprising collecting the extracted new named entity based on a heuristic threshold, wherein the new named entity is collected if the new named entity appears with at least a predefined number of unique contexts.
 17. A system comprising: a memory; and a processor coupled to the memory, the processor executing components comprising: an offline training component configured to: construct training data comprising a first named entity and a classification for the first named entity, and train a probabilistic topic model based on the first named entity and the classification for the first named entity using a weakly supervised learning method; and an online prediction component configured to: detect another named entity in an input query, represent the input query as one or more triples (e, t, c), wherein e represents the detected other named entity, t represents a context of the detected other named entity, and c represents a particular classification for the detected other named entity that is determined based at least in part on the trained probabilistic topic model and a predefined taxonomy, calculate a joint probability for individual ones of the one or more triples, identify a largest joint probability associated with a respective one of the one or more triples, predict an assigned classification for the detected other named entity based at least in part on the identified largest joint probability, and output the detected other named entity and the assigned classification for the detected other named entity to a user.
 18. The system of claim 17, wherein the constructing training data comprises: defining a seed set from a data set comprising a plurality of search queries, the seed set comprising a seed named entity; receiving, at least in part from a human, the classification for the seed named entity based on the predefined taxonomy; scanning a data source for a first search query having the seed named entity; collecting the first search query having the seed named entity; identifying an associated context of the first search query having the seed named entity; scanning the data source for a second search query having the associated context; collecting the second search query having the associated context; and extracting the first named entity from the second search query having the associated context.
 19. The system of claim 18, wherein the data source is a click-through data set comprising queries received and clicked Uniform Resource Locators (URLs) associated with the queries received.
 20. The system of claim 17, wherein the weakly supervised learning method is a Weakly Supervised Latent Dirichlet Allocation (WS-LDA) learning method comprising determining, by a human, that the first named entity can belong to the classification for the first named entity. 